package com.papper.common.exception;

/**
 * 数据统计异常
 *
 * @version 1.0.0
 * @lajiao
 * @Aug 1, 2013 5:42:06 PM
 */
public class ServiceException extends Exception {
	private static final long serialVersionUID = -238091758285157331L;

	private String code;
	private String msg;
	private String error;

	public ServiceException() {
		super();
	}

	public ServiceException(String message, Throwable cause) {
		super(message, cause);
	}

	public ServiceException(Throwable cause) {
		super(cause);
	}

	public ServiceException(String errCode, String errMsg) {
		super(errCode + ":" + errMsg);
		this.code = errCode;
		this.msg = errMsg;
	}

	public ServiceException(String errCode, String errMsg, String error) {
		super(errCode + ":" + errMsg);
		this.code = errCode;
		this.msg = errMsg;
		this.error = error;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}
}
